﻿using Abp.Modules;
using Abp.TestBase;
using GN.Pay.AbpClient;
using GN.Pay.Application;
using GN.Pay.Core;
using GN.Pay.EntityFramework;
using System.Reflection;

namespace GN.Pay.UnitTest
{
    /// <summary>
    /// 
    /// </summary>
    [DependsOn(typeof(CoreModule),
        typeof(DataModule),
         typeof(ApplicationModule),
         typeof(PayClientModule))]
    public class PayTestModule : AbpTestBaseModule
    {
        public override void PreInitialize()
        {
            base.PreInitialize();
            Configuration.DefaultNameOrConnectionString = "GNPay";
        }

        public override void Initialize()
        {
            base.Initialize();
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
        }
    }
}
